//
//  PCUserAboutController.m
//  PhotoCircle
//
//  Created by GL on 15/12/21.
//  Copyright © 2015年 wujungao. All rights reserved.
//

#import "PCUserAboutController.h"

static NSString *appInfo = @"这是一款为真正的摄影爱好者开发的应用。中国最顶尖的摄影大师在此交流展示。权威摄影机构协力入驻。学习交流、权威认证、行摄体验、随手展示。掌上摄影圈是集专业资讯集散、专业群体社交、定制行摄电商的摄影交流服务全平台。";

@interface PCUserAboutController ()

@property (weak, nonatomic) IBOutlet UILabel *appNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *versionLabel;
@property (weak, nonatomic) IBOutlet UILabel *appInfoLabel;
@property (weak, nonatomic) IBOutlet UIScrollView *scrollView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *appInfoWithConstraint;

@end

@implementation PCUserAboutController

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
    MCHiddenBottomView();
    [self.navigationController setNavigationBarHidden:NO animated:YES];
}

-(void)configUI
{
    [self.scrollView setContentSize:CGSizeMake(self.view.frame.size.width, self.view.frame.size.height)];
    _appInfoLabel.text = appInfo;
    self.appInfoWithConstraint.constant = self.view.frame.size.width - 20;
    [self.view layoutIfNeeded];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self configUI];
    // Do any additional setup after loading the view.
}
- (IBAction)backEvent:(UIButton *)sender {
    [self.navigationController  popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
